<?php

/**
 * 广告管理
 * File Name：AdController.php
 * File Encoding：UTF-8
 * File New Time：2014-5-29 9:12:08
 * Author：水平凡
 * Mailbox：admin@abc3210.com
 */
class AdController extends AdminBase {

    public function actionIndex() {
        //条件数组
        $where = array(
            'order' => 'listorder desc,id desc',
        );
        $this->basePage('AdvertisingModel', $where);
        $this->render();
    }

    public function actionAdd() {
        $this->baseAdd('AdvertisingModel', 'index');
    }

    public function actionEdit() {
        $this->baseEdit('AdvertisingModel', 'index');
    }

    public function actionDelete() {
        $this->baseDelete('AdvertisingModel', 'index');
    }

}
